<body>

	<div id="container" class="container_12">
		<div id="header" class="grid_12"> 
			<ul id="top" class="navigation list-horizontal">
				<li ><a href="#" class="selected">Home</a></li>
				<li><a href="#">Page</a></li>
				<li><a href="#">Page</a></li>
				<li><a href="#">hoohaa!</a></li>
				<li><a href="#">Page</a></li>
				<?php if (isset($_SESSION['logged_in'] )&& $_SESSION['logged_in']=TRUE) { ?>
				<li><?php echo anchor('admin/site','Admin' ); ?></li>
				<?php }?>
				</ul>
				<ul id="navigation-extra" class="list-horizontal">
					<li><?php $this->load->helper('url');
					if( !empty( $_SESSION['logged_in'] )&& $_SESSION['logged_in']=TRUE ){
						echo anchor('admin/logout','Logout' );
						
					}
					else {
						echo anchor('admin/login','Login' );
					}?>

				</ul> 
<?php if (isset($header)) { ?>

			<div id="banner" class="grid_12">
				<div id="title_image" class="">
					<img src="images/title.png" title="June's Gallery" alt="June's Gallery" height="68" width="416">
				</div>
			</div>	
		<?php }?> 
		</div>
		
		
		<div id="content" class="grid_12">
		<?php 
		if( !empty( $main )){
			echo $main;
		}
		?>
		</div>
		
		<div id="footer" class="grid_12">
		
			<div class="grid_4 alpha">
			
				<h5>Section links</h5>
				
				<ul class="footer-links list-clean">
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
				</ul>
				
			</div>

			<div class="grid_4">
			
				<h5>Section links</h5>
				
				<ul class="footer-links list-clean">
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
				</ul>
				
			</div>

			<div class="grid_4 omega">
			
				<h5>Section links</h5>
				
				<ul class="footer-links list-clean">
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
					<li><a href="#">Footer link</a></li>
				</ul>
				
			</div>

			<p>&copy; 2011 Garry Willits. All rights reserved.</p>
	
		</div>
		
		<div class="clear">&nbsp;</div>
		
	</div>
	</body>